matrix drop _all
macro drop _all


global dir = "YourFilePath"
global output = "$dir"
global working_data = "$dir/ipums60_pub.dta"

cd "$output"
use "$working_data", clear

forvalues i = 1915/1930 {
	capture drop pre_break 
	di "yob = `i'"
	gen pre_break = (yob <=`i') 
	regress vetbin c.yob##i.pre_break if yob >= `i'-2 & yob <= `i'+2 
	}
		